<!-- 头部 -->
<include file="Public:header" />

        <!-- header-section end-->
        <div class="index-wrapper" style="padding-bottom: 0px;">
            <div style="background: #fff;padding-left: 25px;font-size: 15px;padding-top: 5px;">管理公益项目 <font color="red"> {$xmconut} </font> 个</div>
            <!-- 楼层显示 -->
            <div class="img-floor border-grids product-recom" style="height: 50px;position: initial;">
                <div class="floor-title">
                    <div class="ui-flex total-centent" style="font-size: 15px;">
                        <a class="cell">
                            <span style="padding-top: 5px;">未上线<font color="red"> {$wsxconut} </font>个</span>
                        </a>
                        <a class="cell">
                            <span style="padding-top: 5px;padding-left: 15px;">进行中<font color="red"> {$sxconut} </font>个</span>
                        </a>
                        <a class="cell">
                            <span style="padding-top: 5px;padding-left: 15px;">已结束<font color="red"> {$is_over} </font>个</span>
                        </a>
                    </div>
                </div>
            </div>
            <div class="product-list" style="background: #fff;padding: 10px;margin: 0px;">
            <?php foreach ($myxms as $v) { ?>
                <a href="{:U('setup/editxm',array('id'=>$v['id']))}" style="width: 100%;height: 100px;">
                    <div style="float: left;"><img src="__ROOT__{$v.xm_img}" alt="" style="width: 136px;height: 90px;"></div>
                    <div style="height: 100px;padding-left: 140px;border-bottom: 1px solid #dbd0d0;position: relative;">
                        <p style="font-size: 15px;padding: 2px;width: 70%;">{$v.xm_name}</p>
                        <?php if ($v['is_online'] == 1 && $v['is_over'] == 1) { ?>
                            <span style="position: absolute;color: green;top: 1px;right: 0px;font-size: 8px;">进行中</span>
                        <?php }else if ($v['is_online'] == 0 && $v['is_over'] == 1) { ?>
                            <span style="position: absolute;color: red;top: 1px;right: 0px;font-size: 8px;">未上线</span>
                        <?php }else { ?>
                            <span style="position: absolute;color: #b5a8a8;top: 1px;right: 0px;font-size: 8px;">已结束</span>
                        <?php } ?>
                        <p style="font-size: 14px;color: #A4A4A4;padding: 2px;">已捐数量<span style="color: #FF8814;"> {$v.xm_num} 本</span></p>
                        <p style="font-size: 14px;color: #A4A4A4;padding: 2px;">已捐次数<span style="color: #FF8814;"> <?php echo re_xmcount($v['id'])?> 人</span></p>
                    </div>
                </a>
            <?php } ?>
            </div>
            <div style="height: 10px;"></div>
            <!-- 底部 -->
            <div class="tabbar-section" style="text-align: center;font-size: 12px;padding-top: 10px;background: #fff;padding-bottom: 10px;">
                <ul id="J-tabbar" class="ui-flex">
                    <li class="cell">
                        <a class="tabbar-nav" href="{:U('index/index')}">
                            <img src="__PUBLIC__/home/images/sy1.png" alt=""><p style="font-size: 15px;">首页</p>
                        </a>
                    </li>
                    <li class="cell J-other">
                    <?php if (!empty(session('name'))) { ?>
                        <a class="tabbar-nav" href="{:U('setup/index')}">
                            <img src="__PUBLIC__/home/images/fq2.png" alt=""><p style="font-size: 15px;">创建</p>
                        </a>
                    <?php } else { ?>
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <img src="__PUBLIC__/home/images/fq2.png" alt=""><p style="font-size: 15px;">创建</p>
                        </a>
                    <?php } ?>
                    </li>
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="{:U('index/xms')}">
                            <img src="__PUBLIC__/home/images/xm3.png" alt=""><p style="font-size: 15px;">项目</p>
                        </a>
                    </li>
                    <li class="cell J-other">
                    <?php if (!empty(session('name'))) { ?>
                        <a class="tabbar-nav" href="{:U('user/yhzx')}">
                            <img src="__PUBLIC__/home/images/xwd4.png" alt=""><p style="color:#FF9027;font-size: 15px;">我的</p>
                        </a>
                    <?php } else { ?>
                        <a class="tabbar-nav" href="{:U('user/login')}">
                            <img src="__PUBLIC__/home/images/wd4.png" alt=""><p style="font-size: 15px;">我的</p>
                        </a>
                    <?php } ?>
                    </li>
                </ul>
            </div>
        </div>
    </body>
</html>